﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using BAL.EstRec.FDVIndicador;

namespace BAL.EstRec.FDVGrid
{
    public class CapFdvPivot2Collection : ObservableCollection<RecursoIndexer>
    {
        protected List<Recurso> recursos;
        public CapFdvPivot2Collection(long unid, List<Recurso> recursos, FDVRecursoRule rule)
        {
            this.recursos = recursos;
            try
            {
                CapturaFdv.GetPivotCapturaFDV(unid,rule,recursos).ToList().ForEach(p=> {
                    this.Add(p);
                    
                });
            }
            catch (Exception ex)
            {
                ;
            }    
        }

        public CapFdvPivot2Collection()
        {
        }
    }
}
